<div id="content_body" class="content_body">
	<div class="main-title">
		<fly:translate name="title_1"/><fly:modify name="title_1" />
	</div>
	
	<form method="post" id="frm_place">		
		<input type="hidden" name="visible" id="visible" class="radio"<fly:variable name='checked_visible' /> />
		<input type="hidden" name="index" id="index" class="radio" <fly:variable name='checked_index' /> />	
		<input type="hidden" name="follow" id="follow" class="radio" <fly:variable name='checked_follow' /> />
		
		<div id="form-ligne">	
			<div id="form-titre"><fly:variable name="label_1_20"/></div>
			<div id="form-field">				
				<fly:variable name='real_title'/>
				<input type="hidden" name="type_real" id="type_real" value="<fly:variable name='real_id'/>">
			</div>
		</div>	
		
		<div id="form-ligne">	
			<div id="form-titre"><fly:variable name="label_1_23"/></div>
			<div id="form-field">
					<div id="wrap_category">
						<fly:list name='list_category'>							
		                   	<input type="checkbox"  DISABLED CHECKED="CHECKED"  name="c<fly:variable name='id_category_map' />"  value="<fly:variable name='id_category_map' />" />&nbsp;<fly:variable name='category_title' /><br />		                
		                </fly:list>
		       		</div>				               
			</div>
		</div>
		
		<div id="form-ligne">	
			<div id="form-titre"><fly:variable name="label_1_1"/></div>
			<div id="form-field">
				<input type="text" name="place_name" id="place_name" maxlength="255" size="70" value="<fly:variable name='place_name' />" class="oblig info_bull" alt="<fly:variable name='popup_1_1'/>" />
			</div>
		</div>
		
		<fly:block name="content">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_8"/></div>
				<div id="form-field">
					<textarea name="content" id="content" rows="6" cols="53" alt="<fly:variable name='popup_1_2'/>" class="info_bull"><fly:variable name='content' /></textarea>
				</div>
			</div>
		</fly:block>
		
		<input type="hidden" name="url_rewriting" id="url_rewriting" size="116" maxlength="25" value="<fly:variable name='url_rewriting' />" readonly="readonly" class="test noborder" />	
		<input type="hidden" name="meta_title" id="meta_title" size="70" maxlength="255" value="<fly:variable name='meta_title' />"/>	
		<input type="hidden" name="meta_description" id="meta_description" size="116"  value="<fly:variable name='meta_description' />"/>
		<input type="hidden" name="language_code" id="language_code" size="116" maxlength="25" value="<fly:variable name='language_code' />"  />		
		
		<fly:block name="address">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_2"/></div>
				<div id="form-field">
					<textarea name="address" id="address" rows="6" cols="53" class="info_bull" alt="<fly:variable name='popup_1_3'/>"><fly:variable name='address' /></textarea>
				</div>
			</div>
		</fly:block>
		<fly:block name="block_reference">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="xml_reference"/></div>
		        <div id="form-field">
					<input type="hidden" name="reference" id="reference" value="<fly:variable name='reference' />" />
					<fly:variable name='reference' />
				</div>
			</div>	
		</fly:block>				
		<div id="form-ligne">	
			<div id="form-titre"><fly:variable name="label_1_4"/></div>
	        <div id="form-field">
				<input type="hidden" name="province" id="id_province" value="<fly:variable name='id__province' />" />
				<input type="hidden" name="district" id="id_district" value="<fly:variable name='id__district' />" />
				<fly:variable name='name_province' />
			</div>
		</div>	
		<fly:block name="price_rental">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_9"/></div>
				<div id="form-field">
					<input type="hidden" name="price_rental" id="price_rental" maxlength="255" size="30" value="<fly:variable name='price_rental' />" onkeypress="return keyEnable(event,'float',this)" />
					<fly:variable name='price_rental' />
				</div>
			</div>
		</fly:block>
		<fly:block name="price_sell">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_31"/></div>
				<div id="form-field">
					<input type="hidden" name="price_sell" id="price_sell" maxlength="255" size="30" value="<fly:variable name='price_sell' />" onkeypress="return keyEnable(event,'float',this)"  />
					<fly:variable name='price_sell' />
				</div>
			</div>
		</fly:block>
		<fly:block name="length">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_10"/></div>
				<div id="form-field">
					<input type="hidden" name="length" id="length" maxlength="255" size="30" value="<fly:variable name='length' />" onkeypress="return keyEnable(event,'float',this)" /> 
					<fly:variable name='length' />&nbsp;m
				</div>
			</div>
		</fly:block>	
		<fly:block name="width">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_11"/></div>
				<div id="form-field">
					<input type="hidden" name="width" id="width" maxlength="255" size="30" value="<fly:variable name='width' />" onkeypress="return keyEnable(event,'float',this)" /> 
					<fly:variable name='width' />&nbsp;m
				</div>
			</div>
		</fly:block>
		<fly:block name="size_building">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_25"/></div>
				<div id="form-field">
					<input type="hidden" name="size_building" id="size_building" maxlength="255" size="30" value="<fly:variable name='size_building' />" onkeypress="return keyEnable(event,'float',this)" />
					<fly:variable name='size_building' />&nbsp;m2
				</div>
			</div>
		</fly:block>
		<fly:block name="height">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_21"/></div>
				<div id="form-field">
					<input type="hidden" name="height" id="height" maxlength="255" size="30" value="<fly:variable name='height' />" onkeypress="return keyEnable(event,'float',this)"  />
					<fly:variable name='height' />&nbsp;m
				</div>
			</div>	
		</fly:block>
		<fly:block name="length_land">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_26"/></div>
				<div id="form-field">
					<input type="hidden" name="length_land" id="length_land" maxlength="255" size="30" value="<fly:variable name='length_land' />" onkeypress="return keyEnable(event,'float',this)" />
					<fly:variable name='length_land' />&nbsp;m
				</div>
			</div>
		</fly:block>
		<fly:block name="width_land">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_27"/></div>
				<div id="form-field">
					<input type="hidden" name="width_land" id="width_land" maxlength="255" size="30" value="<fly:variable name='width_land' />" onkeypress="return keyEnable(event,'float',this)" />
					<fly:variable name='width_land' />&nbsp;m
				</div>
			</div>
		</fly:block>
		<fly:block name="size_land">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_28"/></div>
				<div id="form-field">
					<input type="hidden" name="size_land" id="size_land" maxlength="255" size="30" value="<fly:variable name='size_land' />" onkeypress="return keyEnable(event,'float',this)" />
					<fly:variable name='size_land' />&nbsp;m2
				</div>
			</div>
		</fly:block>
		<fly:block name="bedroom">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_29"/></div>
				<div id="form-field">
					<input type="hidden" name="bedroom" id="bedroom" maxlength="255" size="30" value="<fly:variable name='bedroom' />" onkeypress="return keyEnable(event,'float',this)" /> 
					<fly:variable name='bedroom' />
				</div>
			</div>
		</fly:block>
		<fly:block name="bathroom">	
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_30"/></div>
				<div id="form-field">
					<input type="hidden" name="bathroom" id="bathroom" maxlength="255" size="30" value="<fly:variable name='bathroom' />" onkeypress="return keyEnable(event,'float',this)"  /> 
					<fly:variable name='bathroom' />
				</div>
			</div>					
		</fly:block>
		<fly:block name="checked_mezzanine">
			<div id="form-ligne">
				<div id="form-titre"><fly:variable name="label_1_12"/></div>
				<div id="form-field">
					<input type="hidden" name="mezzanine" id="mezzanine" value="<fly:variable name='checked_mezzanine' />" />
					<input type="hidden" id="hidden_mezzanine_text" name="hidden_mezzanine_text" value="<fly:variable name="label_1_12"/>" />
					<fly:variable name='checked_mezzanine' />
				</div>
			</div>
		</fly:block>
		<fly:block name="checked_furnished_apartment">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_13"/></div>
				<div id="form-field">
					<input type="hidden" name="furnished_apartment" id="furnished_apartment" value="<fly:variable name='checked_furnished_apartment' />" />
					<input type="hidden" id="hidden_furnished_apartment_text" name="hidden_furnished_apartment_text" value="<fly:variable name="label_1_13"/>" />
					<fly:variable name='checked_furnished_apartment' />
				</div>
			</div>
		</fly:block>
		<fly:block name="furnished_detail">
			<div id="show-detail">
				<div id="form-ligne">	
					<div id="form-titre"><fly:variable name="label_1_14"/></div>
					<div id="form-field">
						<textarea name="furnished_detail" id="furnished_detail" rows="6" cols="53" alt="<fly:variable name='popup_1_15'/>" class="info_bull"><fly:variable name='furnished_detail' /></textarea>
					</div>
					<span class='popup'><fly:modify name="popup_1_15" /></span>
				</div>
			</div>
		</fly:block>
		<fly:block name="floor">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_15"/></div>
				<div id="form-field">				
					<input type="hidden" name="floor" id="floor" maxlength="255" size="30" value="<fly:variable name='floor' />" onkeypress="return keyEnable(event,'number')" /> 
					<fly:variable name='floor' />
				</div>
			</div>
		</fly:block>
		<fly:block name="number_floor">	
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_16"/></div>
				<div id="form-field">
					<input type="hidden" name="number_floor" id="number_floor" maxlength="255" size="30" value="<fly:variable name='number_floor' />" onkeypress="return keyEnable(event,'number')"  /> 
					<fly:variable name='number_floor' />
				</div>
			</div>	
		</fly:block>
		<fly:block name="checked_tenant">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_17"/></div>
				<div id="form-field">
					<input type="hidden" name="tenant" id="tenant" value="<fly:variable name='checked_tenant' />"/>
					<input type="hidden" id="hidden_tenant_text" name="hidden_tenant_text" value="<fly:variable name="label_1_17"/>" />
					<fly:variable name='checked_tenant' />
				</div>
			</div>
		</fly:block>
		<fly:block name="end_tenant">
			<div id="show-tenant-end-date">
				<div id="form-ligne">	
					<div id="form-titre">
						<div id="end_date" style="width:150px;">
							<div id="end" style="width:100px;float:left;">
								<fly:variable name="label_1_18"/>
							</div>
							<div id="date">
								<fly:variable name="label_1_19"/>
							</div>
						</div>
					</div>
					<div id="form-field">
						<input type="hidden" name="end_tenant"  id="end_tenant" maxlength="255" size="20" value="<fly:variable name='end_tenant' />" onkeypress="return keyEnable(event,'number')"  /> 
						<fly:variable name='end_tenant' />
					</div>
				</div>
			</div>	
		</fly:block>
		<fly:block name="key">
			<div id="form-ligne">	
				<div id="form-titre"><fly:variable name="label_1_32"/></div>
				<div id="form-field-keyword">
					<div id="seperate-list-google-map">
						<ul>
							<fly:list name="listkeyword_1">
								<li><input type="checkbox" name="k<fly:variable name='key_link_1' />" id="k<fly:variable name='key_link_1' />" value="<fly:variable name='key_link_1' />" class="radio info_bull"  DISABLED CHECKED="CHECKED"  />&nbsp;<fly:variable name="title1" /></li>
							</fly:list>
						</ul>
					</div>
					<div id="seperate-list-google-map">
						<ul>
							<fly:list name="listkeyword_2">
								<li><input type="checkbox" name="k<fly:variable name='key_link_2' />" id="k<fly:variable name='key_link_2' />" value="<fly:variable name='key_link_2' />" class="radio info_bull"  DISABLED CHECKED="CHECKED"  />&nbsp;<fly:variable name="title2" /></li>
							</fly:list>
						</ul>
					</div>
					<div id="seperate-list-google-map">
						<ul>
							<fly:list name="listkeyword_3">
								<li><input type="checkbox" name="k<fly:variable name='key_link_3' />" id="k<fly:variable name='key_link_3' />" value="<fly:variable name='key_link_3' />" class="radio info_bull"  DISABLED CHECKED="CHECKED"  />&nbsp;<fly:variable name="title3" /></li>
							</fly:list>
						</ul>
					</div>
				</div>
			</div>
		</fly:block>
		
		<div id="form-ligne">	
			<div id="form-titre">&nbsp;</div>
			<div id="form-field">
				<input type="submit" name="create" class="submit" id="<fly:variable name='button_value' />" value="<fly:variable name="button_1"/>" /> 
				<input type="hidden" name="id_language_link"  id="id_language_link" value="<fly:variable name='id_language_link' />" />
			</div>
		</div>	
		
			<input type="hidden" value="<fly:variable name='language_code' />" name="language_code" id="language_code" />
	
	</form>
	<input type='hidden' name='other_pop_up' id='other_pop_up' value="<fly:translate name='text_1_3'/>"><fly:modify name="text_1_3" />
</div>
<fly:modify name="popup_1_9" />
<script type="text/javascript">

	$('#furnished_apartment').attr('value')=='Yes'?$('#show-detail').show():$('#show-detail').hide();
	$('#tenant').attr('value')=='Yes'?$('#show-tenant-end-date').show():$('#show-tenant-end-date').hide();
		
	$(document).ready(function() {
    
	    $("body").append('<div class="info_div"><div class="info_div_top"></div><div class="info_div_middle"><div class="info_div_text"></div></div><div class="info_div_bottom"></div></div>');
	   	$('#furnished_apartment').click(function(){
	   		this.checked?$('#show-detail').show():$('#show-detail').hide();
	   	});
	   	$('#tenant').click(function(){
	   		this.checked?$('#show-tenant-end-date').show():$('#show-tenant-end-date').hide();
	   	});
		//=========== info bulles ============/		
		$('.info_bull').mouseover(function(e){
			setInfoBulles(this);
			var width = $(this).width();
			var offset = $(this).offset();//,'left':offset.left
			//w = 655-(parseInt(width)+150)+14;
			w = offset.left+parseInt(width)+15;
			
			$('.info_div').css({'left':w+'px'});
			var type = $(this).attr("type");
			
			if(type == 'textarea'){$('.info_div').css({'top':offset.top+30});}
			else $('.info_div').css({'top':offset.top-25});
		}).mouseout(function(){
			$('.info_div').hide();			
		});
			
		$('.calendar').calendar({autoPopUp: 'both', 
		buttonImageOnly: true, buttonImage: '../_design/calendar.gif', 
		buttonText: 'Calendar'});
	});
	function setInfoBulles(obj){
		//var offset = $(obj).offset();//,'left':offset.left
		//$('.info_div').css({'top':offset.top-171});
		
		if($(obj).attr('alt')!="undefined"){
			if(obj.id=="your_email"){
				if(!IsNumeric($('#combo_day').val()) ||!IsNumeric($('#combo_month').val()) || !IsNumeric($('#combo_year').val()) ){
					$('.info_div_text').text("<fly:translate name='popup_1_9'/>");				
				}else{
					$('.info_div_text').text($(obj).attr('alt'));
				}
			}else{
				$('.info_div_text').text($(obj).attr('alt'));
			}			
		}else{
			$('.info_div_text').text($(obj).attr('title'));
		}
		$('.info_div').css("display","block");
	}
</script>